import Resource from '@/api/resource';
import request from "@/utils/request";
class examineResource extends Resource{

  getUsers(){
    return request({
      url:'/getUsers',
      method :'get'
    })
  }

  setStep(resource){
    return request({
      url: '/examineSetStep',
      method: 'post',
      data: resource,
    });
  }

  getStepByFolwId(id){
    return request({
      url:'/getStepByFolwId/'+id,
      method :'get',

    })
  }

  getExamineAll(){
    return request({
      url: '/getExamineAll',
      method: 'get'
    })
  }

  getUsersByFolwId(id,submituser) {
    return request({
      url: '/getUsersByFolwId/'+id+'/'+submituser,
      method: 'get'
    })
  }

  getReviewRecord(flow_id,id) {
    return request({
      url: '/getReviewRecord/'+flow_id+'/'+id,
      method: 'get'
    })
  }


  review(data){
    return request({
      url:'review',
      data,
      method:'post'
    })
  }
}

export { examineResource as default };
